# ---------------------------------------------------------------------------------------------------- #
# PowerDistanceREADME.txt
# ---------------------------------------------------------------------------------------------------- #

 Date: 2012-07-20

 Authors: Jonathan Markowitz and Christopher Fariss

 Title: Going the Distance: The Price of Projecting Power
 Most recent version available at: http://ssrn.com/abstract=1961454

 Contact: Chris Fariss: cjf0006@gmail.com
 All inquires about the models and code should be sent to Chris Fariss 

 Copyright (c) 2012, under the Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License.
 For more information see: http://creativecommons.org/licenses/by-nc-sa/3.0/us/
 All rights reserved. 



# ---------------------------------------------------------------------------------------------------- #
# Run the R files in the following order:
# ---------------------------------------------------------------------------------------------------- #

1. PowerDistanceSystemLevelAnalysis01.R
2. PowerDistanceDisputeLevelAnalysis01.R
 

# ---------------------------------------------------------------------------------------------------- #
# install R and necessary packages for analysis
# ---------------------------------------------------------------------------------------------------- #

open the .R file using any text or source code editor such as:
	TextEdit, emacs, Aquamacs, notepad++ , or Xpad

set the working directory to the folder containing the data files 

the set working directory command in R is setwd()
	type ?setwd for help documentation 

to set the path type into R: 

setwd("PATH_NAME")

where PATH_NAME is the path to the folder with the data

install packages if necessary:
	install.packages("plotrix")
	install.packages("Zelig")
	install.packages("simecol")
	install.packages("geepack")
	install.packages("MASS")
	install.packages("lmtest")
	install.packages("foreign")
	install.packages("gtools")
	install.packages("xtable")




# ---------------------------------------------------------------------------------------------------- #
# Data Source Used in this Project
# ---------------------------------------------------------------------------------------------------- #

 Dyadic Militarized Interstate Disputes Dataset  Version 2.0 (DYDMID2.0)
 http://psfaculty.ucdavis.edu/zmaoz/dyadmid.html

 shipping data from David A. Lake (1999) "Entangling Relations Dataset" Princeton: Princeton University Press
 http://dss.ucsd.edu/~dlake/Data/er_variables.htm
 
 	variables include:
 	Tramp  (Tramp Shipping): An index of tramp shipping rates (1869 = 100). Data from Mitchell 1962, p.224.
 	RailCost (Rail Costs): A price series based on receipts per passenger mile traveled on all railways in Great Britain, in constant pounds (average of 1867-1877). Data from Mitchell 1962, 225-27 and 474-75.
 	Indus (Industrialization): Energy usage per capita in the United Kingdom. Energy usage and population data from National Capabilities Dataset, as defined in Singer and Small 1993 (see also Singer 1987).

 capdist data from Kristian Skrede Gleditsch
 http://privatewww.essex.ac.uk/~ksg/data-5.html

 	great circle distance between capital cities in the kilometers for all states in the file latlong.csv, 
 	which contains the latitude and longitude of the capital cities.
 	and data set with latitude and longitude coordinates for each capital 

 MID Location, 1816-2001 (v1.0) from Alex Braithwaite
 http://www.correlatesofwar.org/COW2%20Data/MIDLOC/MIDLOC_v1.0.html
 	latitude and longitude coordinates of the militarized interstate disputes from the correlates of War data project

 polity2  
	http://www.systemicpeace.org/polity/polity4.htm

 Correlates of War contiguity data
	www.correlatesofwar.org/

 GDP data from Angus Madison
	http://www.ggdc.net/MADDISON/oriindex.htm

 GDP data from Kristian Gleditsch
	http://privatewww.essex.ac.uk/~ksg/exptradegdp.html

 For more information about variables and operationalizations please see the main text of the paper cited above.

# ---------------------------------------------------------------------------------------------------- #
# end file
# ---------------------------------------------------------------------------------------------------- #

